
import java.util.*;

public class RouterTable {
	HashMap<String, String> map;

	public RouterTable(){
		map = new HashMap<String, String>();
	}

	public boolean addRouter(String name, String ipv4){
		if(map.containsKey(name)){
			return false;
		} else {
			this.map.put(name, ipv4);
			return true;
		}
	}
	
	public boolean removeRouter(String name){
		if(map.containsKey(name)){
			return false;
		} else {
			this.map.remove(name);
			return true;
		}
	}

	public HashMap<String, String> getRouterTable(){
		return map;
	}
}
